package org.aristotle.demo.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("图书分类")
@TableName("tb_category")
public class Category {

    @ApiModelProperty("分类id")
    @TableId(value = "id", type = IdType.AUTO)
    @JSONField(name = "id")
    private java.lang.Long id;

    @ApiModelProperty("分类名")
    @JSONField(name = "name")
    private java.lang.String name;

    @ApiModelProperty("分类描述")
    @JSONField(name = "info")
    private java.lang.String info;

    @TableLogic
    @ApiModelProperty("逻辑删除")
    @JSONField(serialize = false)
    @TableField(fill = FieldFill.INSERT)
    private java.lang.Integer deleted;

}
